package comc.staterController;



import com.anhua.Util.HelloService;
import com.anhua.pojo.UserPropter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HellorController {
    @Autowired
    HelloService helloService;
    @Autowired
    private UserPropter userPropter;
    @GetMapping("/hello")
    public String sayHello(){
        System.out.println(helloService.sayHello());
        return helloService.sayHello()+userPropter.getUserHome();
    }
    @RequestMapping("/hello2")
    public String sayHello2(){
        System.out.println("亚感化");
        return "杨安华";
    }
}
